package com.campusnews.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.campusnews.annotation.IgnoreSwaggerParameter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author lqc
 * @since 2021-10-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Build对象", description="")
public class Build implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "地点自增id")
    @TableId(value = "build_id", type = IdType.AUTO)
    private Integer buildId;

    @ApiModelProperty(value = "地点纬度")
    private BigDecimal xPosition;

    @ApiModelProperty(value = "地点经度")
    private BigDecimal yPosition;

    @ApiModelProperty(value = "地点名称")
    private String buildName;

    @ApiModelProperty(value = "地点显示图标")
    private String buildIcon;

    @ApiModelProperty(value = "最新帖子id")
    private Integer inviId;

    @ApiModelProperty(value = "最新帖子")
    @IgnoreSwaggerParameter
    @TableField(exist = false)
    private Invitation invitation;

    @ApiModelProperty(value = "帖子数量")
    private Integer inviNum;

    @ApiModelProperty(value = "乐观锁")
    @Version
    @IgnoreSwaggerParameter
    private Integer version;

    @ApiModelProperty(value = "逻辑删除")
    @TableLogic
    @IgnoreSwaggerParameter
    private Boolean deleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @IgnoreSwaggerParameter
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @IgnoreSwaggerParameter
    private Date updateTime;

    @TableField(exist = false)
    @IgnoreSwaggerParameter
    private int page;

    @TableField(exist = false)
    @IgnoreSwaggerParameter
    private int pageSize;

    @TableField(exist = false)
    @IgnoreSwaggerParameter
    private String sortOrder;
}
